package com.woniuxy.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.woniuxy.entity.ClientAccount;

@Mapper
public interface ClientAccountMapper {
	@Select("select * from t_client_account")
	public List<ClientAccount> all();
	
	@Update("update t_client_account set status=1 where caid=#{caid}")
	public int updateBegin(int caid);
	
	@Update("update t_client_account set status=0 where caid=#{caid}")
	public int updateEnd(int caid);
}
